//package com.bw.Interceptor;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.EnableWebMvc;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//
//@EnableWebMvc
//@Configuration
//public class MVCConfig extends WebMvcConfigurerAdapter {
//
//
//
//    @Bean
//    public SecurityPMSInterceptor securityInterceptor() {
//        return new SecurityPMSInterceptor();
//    }
//
//    @Bean
//    public TokenInterceptor tokenInterceptor(){
//        return new TokenInterceptor();
//    }
//    /**
//     * ���þ�̬������Դ
//     * @param registry
//     */
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
//        super.addResourceHandlers(registry);
//    }
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
////    registry.addInterceptor(securityInterceptor()).excludePathPatterns("/static/*")
////                .excludePathPatterns("/error").addPathPatterns("/**");
//    registry.addInterceptor(tokenInterceptor()).excludePathPatterns("/static/*") .
//            excludePathPatterns("/error").addPathPatterns("/**");
//    }
//
//}